package wei.xinya.springwebflux.service;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import wei.xinya.springwebflux.entity.User;

public interface UserService {

    Mono<User> getUserById(int id);

    Flux<User> getAllUser();

    Mono<Void> saveUser(Mono<User> user);
}
